package com.xyz.sms;

import com.free.ext.logger.FreeLogger;
import com.free.ext.logger.FreeLoggerFactory;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DefaultSender implements ISmsSender {

    private static final FreeLogger LOGGER = FreeLoggerFactory.getLogger(DefaultSender.class);

    @Override
    public Map<String, String> send(String phone, String message) {
        LOGGER.info("将{}发送到{}号码的手机上",message,phone);
        Map<String,String> res = new HashMap<>();
        res.put("success","1");
        return res;
    }

    @Override
    public Map<String, String> send(List<String> phones, String message) {
        LOGGER.info("将{}发送到{}号码的手机上",message,phones);
        Map<String,String> res = new HashMap<>();
        res.put("success","1");
        return res;
    }
}
